package com.coffee.admin.api.supplier.service;

import com.coffee.admin.api.platform.result.PlatformPermissionResult;
import com.coffee.admin.api.supplier.query.SupplierPermissionQuery;
import com.coffee.admin.api.supplier.result.SupplierPermissionResult;
import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface SupplierPermissionService {

	Page<SupplierPermissionResult> getPager(SupplierPermissionQuery param, PagerInfo pr);
	
	Integer count(SupplierPermissionQuery param);
	
	SupplierPermissionResult getDetail(Integer id);
	
	List<SupplierPermissionResult> getList(SupplierPermissionQuery param, PagerInfo pr);
	
	List<SupplierPermissionResult> getList(SupplierPermissionQuery param);
	
	List<SupplierPermissionResult> getList();

	void delete(Integer id);

	void addOrUpdate(SupplierPermissionResult result)throws BusinessException;
	
	Map<Integer,SupplierPermissionResult> getItemMap(Set<Integer> idSet);
	
	Map<Integer,SupplierPermissionResult> getItemMap();

	List<SupplierPermissionResult> getPermissionListByLoginMerchant();

	Set<String> getPermissionSet(Integer platformId)throws BusinessException;
	
}